﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="frmCrawlerWaps.aspx.cs" Inherits="WapCrawler.frmCrawlerWaps" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    
    <style type="text/css">
        .style1
        {
            width: 256px;
        }
        .style2
        {
            width: 71px;
        }
        .style3
        {
            width: 171px;
        }
    </style>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    
        <div id="div1" style="padding: 5px;">
                <table style="width:100%;">
                    <tr>
                        <td class="style2">
                <asp:Label ID="Label3" runat="server" Text="Select Wap"></asp:Label>
                        </td>
                        <td>
                <asp:DropDownList ID="WapCrawlerDropDownList" runat="server" Width="200px" 
                    Style="height: 22px" DataSourceID="WapCrawlerLinqDataSource" 
                    DataTextField="wapSiteUrl" DataValueField="wapCrawlerId" AutoPostBack="True" 
                                onselectedindexchanged="WapCrawlerDropDownList_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:LinqDataSource ID="WapCrawlerLinqDataSource" runat="server" 
                    ContextTypeName="WapCrawlerLib.WapDataClassesDataContext" EntityTypeName="" 
                    TableName="WapCrawlers">
                </asp:LinqDataSource>
                        </td>

                    </tr>
                    <tr>
                    <td class="style2">
                <asp:Label ID="Label5" runat="server" Text="Select Topic"></asp:Label>
                        </td>
                    <td class="style1">
                <asp:DropDownList ID="TopicCrawlerDropDownList" runat="server" Width="200px" 
                    Style="height: 22px" DataSourceID="TopicCrawlerLinqDataSource" 
                    DataTextField="topicName" DataValueField="topicCrawlerId">
                </asp:DropDownList>
                <asp:LinqDataSource ID="TopicCrawlerLinqDataSource" runat="server" 
                    ContextTypeName="WapCrawlerLib.WapDataClassesDataContext" EntityTypeName="" 
                    TableName="TopicCrawlers" Where="wapCrawlerId == @wapCrawlerId">
                    <WhereParameters>
                        <asp:ControlParameter ControlID="WapCrawlerDropDownList" 
                            Name="wapCrawlerId" PropertyName="SelectedValue" Type="Int32" />
                    </WhereParameters>
                </asp:LinqDataSource>
                    </td>
                    </tr>
                </table>
            <asp:Button ID="btnStartCrawler" runat="server" OnClick="btnStartCrawler_Click" Text="Start Crawler" />
            <asp:Button ID="btnStopCrawler" runat="server" Text="Stop Crawler" 
                onclick="btnStopCrawler_Click" />
                <asp:CheckBox ID="CheckBoxAllowUpdate" runat="server" />
                <br />
                
            </div>

    
    <div style="padding: 5px;">
    <table style="width:100%;">
     <tr>
                        <td class="style3">
                <asp:Label ID="Label4" runat="server" Text="Test Wap Url"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtTestWapUrl" runat="server" Width="606px"></asp:TextBox>
                        </td>

                    </tr>
                    <tr>
                        <td class="style3">
                <asp:Label ID="Label1" runat="server" Text="Test Page Url"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtTestPageUrl" runat="server" Width="606px"></asp:TextBox>
                        </td>

                    </tr>
                    <tr>
                    <td class="style3">
                <asp:Label ID="Label2" runat="server" Text="Test Title"></asp:Label>
                        </td>
                    <td class="style1">
                        <asp:TextBox ID="txtTestTitle" runat="server" Width="603px"></asp:TextBox>
                    </td>
                    </tr>
                </table>
                <asp:Button ID="btnTestPage" runat="server" OnClick="btnTestPage_Click" Text="Test Page" />
                </div>
</asp:Content>
